using System.Threading.Tasks;
using MalwareMultiScan.Api.Data.Configuration;
using MalwareMultiScan.Api.Data.Models;

namespace MalwareMultiScan.Api.Services.Interfaces
{
    /// <summary>
    /// Scan backend service.
    /// </summary>
    public interface IScanBackendService
    {
        /// <summary>
        /// Get list of parsed backends.
        /// </summary>
        ScanBackend[] List { get; }

        /// <summary>
        /// Queue URL for scan.
        /// </summary>
        /// <param name="result">Result entry.</param>
        /// <param name="backend">Backend entry.</param>
        /// <param name="fileUrl">Remote URL.</param>
        Task QueueUrlScan(ScanResult result, ScanBackend backend, string fileUrl);
    }
}